package jc;

import java.util.Random;

public class JCDemo {
	public static void main(String args[]) throws InterruptedException {
		System.out.println(new String().equals(new String("")));
		// Thread.sleep(Integer.MAX_VALUE);
		// ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<>(10);
		String a = " www\\baidu\\www";
		String b = "baidu\\www";
		System.out.println(a.replace("\\\\", "/"));
		System.out.println(a.replaceAll("\\\\", "/"));
		System.out.println(b.indexOf("d", 2));
		System.out.println(b.indexOf("a"));
		System.out.println(judgeSquareSum(2147483646));
	}

	public static boolean judgeSquareSum(int c) {
		for (long a = 0; a * a <= c; a++) {
			double b = Math.sqrt(c - a * a);
			if (b == (int) b) {
				return true;
			}
		}
		return false;
	}
}
